package com.we823.test;

import javax.swing.text.ChangedCharSetException;

public class Wrap {
	
	public void showDif(){
		OnlyTest a = new OnlyTest();
		a.setX(11);
		
		OnlyTest b = new OnlyTest();
		b.setX(12);
		
		System.out.println("b wrap");
		System.out.println(a.getX()+" "+b.getX());
		a = wrap(a, b);
		System.out.println(a.getX()+" "+b.getX());
		System.out.println("e wrap");
		
	}
	
	public OnlyTest wrap(OnlyTest a,OnlyTest b){
		a=b;
		
		return a;
	}
	
	public void change(OnlyTest a){
		a.setX(13);
	}
	
	public static void main(String[] args){
		Wrap wrap = new Wrap();
		wrap.showDif();
	}
}
